package com.wyk.service;

import com.wyk.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author WangYuKai
 * @Date 2022/8/4
 * @apiNote
 */
@FeignClient(name = "seata-account-service")
public interface AccountService {
    //修改账户余额
    @PostMapping("/account/decrease")
    CommonResult decrease(@RequestParam("userId")Long userId,@RequestParam("money") BigDecimal money);
}
